<?php



class RingtoneOriginExtraMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.RingtoneOriginExtraMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('ringtone_origin_extra');
		$tMap->setPhpName('RingtoneOriginExtra');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ORIGIN_ID', 'OriginId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('SPECTRUM_PATH', 'SpectrumPath', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('SPECTRUM_WIDTH', 'SpectrumWidth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('ALBUM_ID', 'AlbumId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('ALBUM_NAME', 'AlbumName', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('TRACK_NO', 'TrackNo', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('LYRICS', 'Lyrics', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('REMARK', 'Remark', 'string', CreoleTypes::VARCHAR, false, 500);

		$tMap->addColumn('CHECKNUM', 'Checknum', 'int', CreoleTypes::INTEGER, false, null);

	} 
} 